<template>
    <!-- 中心简介 -->
    <div class="maxBoxs">
        <div class="center-box">
            <el-container>
                <el-menu class="el-menu-demo" mode="horizontal" router background-color="#0049ac" text-color="#fff"
                    active-text-color="#fff">
                    <el-menu-item index="/introduction-center">
                        <template #title>
                            <i class="el-icon-discount"></i><span> 中心简介 <i class="el-icon-d-arrow-right"></i></span>
                        </template>
                    </el-menu-item>

                    <el-menu-item index="/teachers-team">
                        <template #title>
                            <i class="el-icon-s-custom"></i><span> 师资团队 <i class="el-icon-d-arrow-right"></i></span>
                        </template>
                    </el-menu-item>

                    <el-menu-item index="/application-materials">
                        <template #title>
                            <i class="el-icon-s-finance"></i><span> 申报材料 <i class="el-icon-d-arrow-right"></i></span>
                        </template>
                    </el-menu-item>

                    <el-menu-item index="/innovation-development">
                        <template #title>
                            <i class="el-icon-sunrise"></i><span> 创新与发展 <i class="el-icon-d-arrow-right"></i></span>
                        </template>
                    </el-menu-item>
                </el-menu>

                <!-- 占位 -->
                <div class="boxs">
                    <router-view></router-view>
                </div>

            </el-container>
        </div>

        <!-- 底部 -->
        <common-button />
    </div>
</template>

<script>
// 公共底部
import CommonButton from '@/components/CommonButton/CommonButton.vue'

export default {
    components: {
        CommonButton
    }
}
</script>

<style lang="less" scoped>
.maxBoxs {
    width: 100%;
    height: 90.4vh; //vh显示背景 %不会显示
    background: url(@/assets/school2x.png) no-repeat;
    background-size: 100%;
}

.center-box {
    z-index: 99;
    position: absolute;
    left: 0;
    right: 0;
    top: 1.9rem;
    bottom: 0;
    margin: auto;
    width: 73%;
    height: 36rem;
    background: #fff;
    padding: 1.8rem;
}

.el-container {
    height: 37rem;
    width: 100%;
}

.boxs {
    position: relative;
    width: 96%;
    height: 37.1rem;
    margin-left: 1.312rem;
    overflow: hidden;
}

.el-menu-demo {
    width: 12.5rem;
}

.el-menu.el-menu--horizontal {
    border-bottom: none;
}

/deep/.el-menu {
    background-color: #e8f4ff !important;
    color: #333;
    text-align: center;
    line-height: 37.125rem;
    min-height: 37.125rem;
}

.el-menu--horizontal>.el-menu-item {
    width: 100%;
    border-bottom: none;
}

.el-icon-discount,
.el-icon-s-custom,
.el-icon-s-finance,
.el-icon-sunrise {
    color: #fff;
}

.el-icon-d-arrow-right {
    color: #fff;
    padding-left: 2.9rem;
}
</style>